//
//  UIECGSettingsView.h
//  vhECGTools
//
//  Created by jia yu on 2021/11/22.
//

#import <UIKit/UIKit.h>

#define Bg1mmLineKey @"Bg1mm"
#define Bg5mmLineKey @"Bg5mm"
#define Bg10mmLineKey @"Bg10mm"
#define ECGLineKey @"ECGLine"
#define BgColorPixPermmKey @"BgColorPixPermm"

#define Color_R_Key @"R"
#define Color_G_Key @"G"
#define Color_B_Key @"B"
#define Color_A_Key @"A"
#define Width_Key @"Width"

NS_ASSUME_NONNULL_BEGIN
@interface UIECGSettingsView : UIView
//save this dictionary for next time.
-(NSDictionary *)currentSettings;

-(void)setDefaultDictionary:(NSDictionary * _Nullable )dict;

-(CGFloat)ecgLineWidth;
-(UIColor *)ecgColor;

-(CGFloat)pixPermm;
-(UIColor *)ecgBackgroundColor;

-(CGFloat)bg1mmLineWidth;
-(UIColor *)bg1mmLineColor;

-(CGFloat)bg5mmLineWidth;
-(UIColor *)bg5mmLineColor;

-(CGFloat)bg10mmLineWidth;
-(UIColor *)bg10mmLineColor;


-(CGFloat)widthWithKey:(NSString *)key;
-(UIColor *)colorWithKey:(NSString *)key;
@end
NS_ASSUME_NONNULL_END
